package com.waimai1.waimai.exception;

public enum EnumException {
    NULL_FILE(801,"空文件"),
    NOT_IMAGE(802,"不是图片文件"),
    NO_FIND_CITY(803,"当前城市无影院"),
    NO_GET_OPENID(901,"获取openid失败"),
    NO_SAVE_USER(902,"注册用户失败"),
    NO_LOGIN(903,"未登录"),
    NO_DELETE(904,"删除失败"),
    NO_UPDATE(905,"更新数据失败"),
    NO_SAVE(906,"插入数据失败"),
    NO_SWITCH_PP(907,"切换品牌状态失败"),
    NO_USER(908,"无用户"),
    NO_CREATE_HW_ORDER(1001,"HW下单失败"),
    NO_ORDER(1002,"订单未找到"),
    WRONG_SIGN(1003,"HW通知sign不匹配"),
    NO_UPDATE_HW_ORDER(1004,"更新hw订单失败"),
    NO_WEPAY_ORDER(1005,"wepay订单不存在"),
    NO_HW_ORDER(1006,"HW订单不存在"),
    NO_SEND_COUPON(1007,"发放代金券失败"),
    NO_CHOUJIANG_CHOICE(1008,"没有抽奖机会"),
    NO_SIGN(1009,"签名错误"),
    NO_TANCHUANG(1010,"无弹窗"),
    SAME_SHOP(1101,"店铺已存在"),
    NO_HEXIAO(1102,"核销失败"),
    NO_REFUND_APPLY(1103,"申请退款失败"),
    NO_GOOD(1104,"商品不存在"),
    NO_CREATE_ORDER(1105,"创建订单失败"),
    SAME_OPENID(1106,"openid已申请过店铺"),
    NO_SHOP(1107,"店铺不存在");


    private Integer code;
    private String message;
    public Integer getCode() {
        return code;
    }
    public String getMessage() {
        return message;
    }
    EnumException(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
